home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- application methods */
- /* Created %date% %time% by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, %Appname%App. The 'z' prefix on this module marks% %*/
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <CBartender.h>
- #include "ResourceDefs.h"
- %for each menu gen includeDialogs%
- #include "%Appname%Doc.h"
- #include "z%Appname%App.h"
-
- extern OSType gSignature;
- extern CBartender *gBartender;
-
- /*----------*/
- void Z%Appname%App::I%Appname%App (void)
- {
- CApplication::IApplication (4, 20480L, 2048L);
-
- %for each dialog gen createModeless%
- } /* I%Appname%App */
-
- /*----------*/
- void Z%Appname%App::SetUpMenus (void)
- {
- inherited::SetUpMenus ();
- %for each menu gen setup%
- %for each menu gen addPopup%
-
- } /* SetUpMenus */
-
- /*----------*/
- void Z%Appname%App::CreateDocument (void)
- {
- C%Appname%Doc% %*theDocument;
-
- theDocument = new (C%Appname%Doc);
- theDocument->I%Appname%Doc (this, TRUE);
- theDocument->NewFile ();
-
- } /* CreateDocument */
-
- /*----------*/
- void Z%Appname%App::OpenDocument (SFReply *macSFReply)
- {
- C%Appname%Doc% %*theDocument;
-
- theDocument = new (C%Appname%Doc);
- theDocument->I%Appname%Doc (this, TRUE);
- theDocument->OpenFile (macSFReply);
-
- } /* OpenDocument */
-
- %for each menu gen doItems%
- /*----------*/
- void Z%Appname%App::DoCommand (long theCommand)
- {
- switch (theCommand) {
- %for each menu gen handleItems%
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /* %filename% */
-